package com.liu.project.dao;

import com.liu.project.pojo.UserCollection;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program: project
 * @description: 用户收藏操作
 * @author: 86187
 * @create: 2022-03-02 10:30
 **/

@Mapper
@Repository
public interface UserCollectionMapper {

    //查看某用户的所有的收藏
    List<UserCollection> findAllByUid(int uid);

    //添加收藏记录
    int insertCollection(int uid,int certificateId);

    //删除收藏
    int deleteCollection(int id);




}
